//
//  ResturantDetailTableViewCell.m
//  Taste
//
//  Created by 徐昊 on 16/9/19.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "ResturantDetailTableViewCell.h"
#import "ResturantDetailRes.h"


@interface ResturantDetailTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *avgpriceshow;
@property (weak, nonatomic) IBOutlet UILabel *phoneNumber;
@property (weak, nonatomic) IBOutlet UILabel *openTime;
@property (weak, nonatomic) IBOutlet UILabel *distance;
@property (weak, nonatomic) IBOutlet UILabel *address;


@end

@implementation ResturantDetailTableViewCell

- (void)setRes:(ResturantDetailRes *)res {
    _res = res;
    _avgpriceshow.text = _res.avgpriceshow;
    _phoneNumber.text = _res.tel;
    _openTime.text = _res.openshop;
    _distance.text = @"自己算吧";
    _address.text = _res.address;
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
